home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Orlando_1993 / Devcon93.4 / Networking2 / AS225 / include / sys / ioctl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-11  |  2.4 KB  |  68 lines

  1. /* -----------------------------------------------------------------------
  2.  * ioctl.h      (sys/ioctl.h)
  3.  *
  4.  * $Locker:$
  5.  *
  6.  * $Id:$
  7.  *
  8.  * $Revision:$
  9.  *
  10.  * $Log:$
  11.  *
  12.  * $Header:$
  13.  *
  14.  *------------------------------------------------------------------------
  15.  */
  16.  
  17.  
  18. /* -----------------------------------------------------------------------
  19.  * This file (c) Copyright 1991, 1992, 1993 Commodore-Amiga, Inc
  20.  * All rights reserved
  21.  * -----------------------------------------------------------------------
  22.  */
  23.  
  24. /*
  25. ** inet ioctl() operations.  Here rather than in more sensible places
  26. ** mostly for Unix compatibility.
  27. */
  28. #ifndef SYS_IOCTL_H
  29. #define SYS_IOCTL_H
  30.  
  31. #define IOCTL(type, op) (((type)<<8) | ((op)&0xff))
  32. #define ROUTE    'r'
  33. #define NETIF    'i'
  34. #define MISC    'm'
  35.  
  36. #define    SIOCADDRT    IOCTL(ROUTE, 1)    /* add routing entry to list    */
  37. #define    SIOCDELRT    IOCTL(ROUTE, 2)    /* delete routing entry     */
  38.  
  39. #define    SIOCSIFADDR    IOCTL(NETIF, 3)    /* set interface address    */
  40. #define    SIOCGIFADDR    IOCTL(NETIF, 4)    /* get interface address    */
  41. #define    SIOCSIFDSTADDR    IOCTL(NETIF, 5)    /* set interface dest address    */
  42. #define    SIOCGIFDSTADDR    IOCTL(NETIF, 6)    /* get interface dest address    */
  43. #define    SIOCSIFFLAGS    IOCTL(NETIF, 7)    /* set interface flags        */
  44. #define    SIOCGIFFLAGS    IOCTL(NETIF, 8)    /* get interface flags        */
  45. #define    SIOCGIFCONF    IOCTL(NETIF, 9)    /* get interface configuration    */
  46. #define    SIOCSIFMTU    IOCTL(NETIF,10)    /* get interface MTU        */
  47. #define    SIOCGIFMTU    IOCTL(NETIF,11)    /* set interface MTU        */
  48. #define    SIOCGIFBRDADDR    IOCTL(NETIF,12)    /* get interface brdcst address    */
  49. #define    SIOCSIFBRDADDR    IOCTL(NETIF,13)    /* set interface brdcst address    */
  50. #define    SIOCGIFNETMASK    IOCTL(NETIF,14)    /* get interface netmask    */
  51. #define    SIOCSIFNETMASK    IOCTL(NETIF,15)    /* set interface netmask    */
  52. #define    SIOCGIFMETRIC    IOCTL(NETIF,16)    /* set interface metric        */
  53. #define    SIOCSIFMETRIC    IOCTL(NETIF,17)    /* get interface metric        */
  54. #define SIOCSARP    IOCTL(NETIF,18)    /* set ARP resolution        */
  55. #define SIOCGARP    IOCTL(NETIF,19)    /* get ARP entry        */
  56. #define SIOCDARP    IOCTL(NETIF,20)    /* delete arp entry        */
  57. #define SIOCATMARK    IOCTL(NETIF,21)    /* OOB at mark            */
  58. #define SIOCSSLIPDEV    IOCTL(NETIF,22)    /* set slip device        */
  59.  
  60. #define FIONBIO        IOCTL(MISC, 22)
  61. #define FIONREAD    IOCTL(MISC, 23)
  62. #define FIOASYNC    IOCTL(MISC, 24)
  63.  
  64. #define SIOCSPGRP    IOCTL(MISC, 25) /* set signalled process    */
  65. #define SIOCGPGRP    IOCTL(MISC, 26)    /* get signalled process    */
  66.  
  67. #endif
  68.